WebTextEditor provides a property to save and load toolbar structure.
In this topic, you will learn how to save and load.
To save and load toolbar structure
- Drag two ASP.NET buttons into the WebForm.
- Use SaveToolBarsStructureToXml() method to save the toolbar structure, and use LoadToolBarsStructureFromXml() method to load the toolbar structure.
- Invoke the method in Button_Click server side event like following:
C#
Copy Codeprotected void Button1_Click(object sender, EventArgs e) { WebTextEditor1.SaveToolBarsStructureToXml(Server.MapPath("XML/New.xml")); } protected void Button2_Click(object sender, EventArgs e) { WebTextEditor1.LoadToolBarsStructureFromXml(Server.MapPath("XML/New.xml")); }
Tasks
{How-to: Add Custom ToolBar using XML File}
Other Resources
{Custom ToolBar}